﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CollegeWebsite.Areas.Administrator.Models.Student>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                StudentID
            </th>
            <th>
                StudentName
            </th>
            <th>
                FatherName
            </th>
            <th>
                MotherName
            </th>
            <th>
                DateOfBirth
            </th>
            <th>
                Gender
            </th>
            <th>
                AdmissionID
            </th>
            <th>
                PreviousInfomation
            </th>
            <th>
                SupportDetails
            </th>
            <th>
                Status
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id=item.StudentID }) %> |
                <%= Html.ActionLink("Details", "Details", new { id=item.StudentID })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id=item.StudentID })%>
            </td>
            <td>
                <%= Html.Encode(item.StudentID) %>
            </td>
            <td>
                <%= Html.Encode(item.StudentName) %>
            </td>
            <td>
                <%= Html.Encode(item.FatherName) %>
            </td>
            <td>
                <%= Html.Encode(item.MotherName) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.DateOfBirth)) %>
            </td>
            <td>
                <%= Html.Encode(item.Gender) %>
            </td>
            <td>
                <%= Html.Encode(item.AdmissionID) %>
            </td>
           <%-- <td>
                <%= Html.Encode(item.PreviousInfomation) %>
            </td>--%>
            <td>
                <%= Html.Encode(item.SupportDetails) %>
            </td>
            <td>
                <%= Html.Encode(item.Status) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptIncludePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" runat="server">
</asp:Content>

